<template>
  <div class="lesson-plan-in">
    <el-button class="back-btn" type="custom" @click="handleBack" plain
      >返回</el-button
    >
    <el-row :gutter="20" type="flex">
      <!-- <el-col :span="6">
        <el-input
          placeholder="请输入分类名称"
          v-model="listQueryIn.name"
          clearable
        >
        </el-input>
      </el-col> -->
      <el-col :span="6">
        <!-- <el-button type="custom" @click="refreshList()" plain>搜索</el-button> -->
        <el-button type="custom" @click="handleAdd">新增</el-button>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      listQueryIn: {
        name: '',
      },
    }
  },
  methods: {
    refreshList() {
      this.$bus.$emit('refreshLessonPlanList', this.listQueryIn)
    },
    handleAdd() {
      this.$bus.$emit('showDialogLessonPlanAdd')
    },
    handleBack() {
      this.$router.go(-1)
    },
  },
}
</script>
<style scoped lang="scss">
.lesson-plan-in {
  position: relative;
  .back-btn {
    position: absolute;
    right: 0;
    top: 1px;
    z-index: 2;
  }
}
</style>